import returnCode from '../common/returnCode'

export async function login(ctx, next) {
    if (ctx.session.user) {
        await next()
    }
    else {
        ctx.status = 401
        // ctx.body = returnCode["401"]
    }
}